
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class AnswerAnswerCfg : public ManualSingleton <AnswerAnswerCfg>
{
	friend ManualSingleton <AnswerAnswerCfg>;
public:
	AnswerAnswerCfg();
	~AnswerAnswerCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const AnswerAnswerCfgInfo *GetAnswerAnswerCfgInfo(int32_t id);
	const AnswerAnswerCfgMap *GetAnswerAnswerCfgMap() { return &m_AnswerAnswerCfgMap; }
private:
	AnswerAnswerCfgMap m_AnswerAnswerCfgMap;
};

#define  g_MakeAnswerAnswerCfgTable() (AnswerAnswerCfg::Instance())
#define  g_GetAnswerAnswerCfgTable() (AnswerAnswerCfg::GetInstance())
#define  g_DelAnswerAnswerCfgTable() (AnswerAnswerCfg::Destroy())